package com.mzp.XbShop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mzp.XbShop.pojo.Goods;
import com.mzp.XbShop.pojo.UserFavorGoods;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Description user_favor_goods 数据访问接口
 * @date 2021-04-19 22:49:59
*/
@Repository
public interface UserFavorGoodsDao extends BaseMapper<UserFavorGoods> {

    List<Map<String, Object>> findByUserIdFavorGoods(String userId);

    UserFavorGoods findByGoodsid(String goodsid,String userid);

    void deleteFavor(String goodsid, String userid);
}

